package com.GreenIce.android.datastructure;

import java.util.LinkedList;

public class ConfigData {
	static ConfigData configData;
	public static ConfigData getInstance(){
		if(configData == null){
			configData = new ConfigData();
		}
		return configData;
	}
	public int starNum;
	public int worldNum;
	public LinkedList<WorldInfo> worldInfo;
	public int status; //0 for main, 1 for world, 2 for level
	public int starSum;
	public int curWorld;
	public int curLevel;
	public int curScore;
	public int curStar;
	private ConfigData(){
		worldInfo = new LinkedList<WorldInfo>();
	}
	public static class WorldInfo{
		public int levelNum;
		public int playNum;
		public int lockStar;
		public int starSumW;
		public int[] eachLevel;
		public WorldInfo(int levelNum, int playNum,  int lockStar, int starSumW){
			this.levelNum = levelNum;
			this.playNum = playNum;
			this.lockStar = lockStar;
			this.starSumW = starSumW;
			this.eachLevel = new int[levelNum];
		}
	}
}
